package org.lvgo.bridge;

/**
 * 矩形
 *
 * @author lvgo
 * @version 1.0
 * @date 2018/9/25 0025 17:03
 */
public class Rectangle extends Shape {

    private double height, width;
    private int x, y;

    public Rectangle(DrawAPI drawAPI, double height, double width, int x, int y) {
        super(drawAPI);
        this.height = height;
        this.width = width;
        this.x = x;
        this.y = y;
    }

    @Override
    void draw() {
        drawAPI.drawRectangle(height, width, x, y);
    }
}
